package com.sasis.webapp.action;

import com.sasis.service.FunctionService;
import com.sasis.webapp.form.FunctionForm;

public class FunctionAction {
	
	private FunctionService functionService;
	
	// IoC ------------
	
	public void setFunctionService(FunctionService functionService) {
		this.functionService = functionService;
	}
	
	public void viewFunctionsTree(final FunctionForm functionForm) {
		try {
			functionForm.setFunctionsTree(functionService.getFunctionsTree());
		} catch (Exception ex) {
			ex.printStackTrace();
		}
	}
}
